
public class CrawlerTimerTask extends java.util.TimerTask {
	@Override
	public void run() {
		try {
			JarUtil ju = new JarUtil(JarUtil.class);
			String confFilePath = ju.getJarPath();
			DataStorage ds = new DataStorage();
			ds.init(confFilePath + "/config.ini");
			if (ds.isConnected()) {
				Crawler c = new Crawler(ds);
				c.init(confFilePath + "/config.ini");
				c.run();
			} else {
				System.out.println("MySQL Connection Error!");
			}
		} catch (Exception e) {

		}
	}
}
